initEditor();
axios.get().then(res =>{
    let  {status,data}= res.data;;
    if(staus===0){
        let str ='',
        data.forEach(item =>{
            str +=``
        })
        let form =layui.form;
        form.render('select')
        
    }
})
$('form').on('submit',function(e){
    e.prevnetDefault();
    let fd = newFormData(this);
    fd.set('content',ting)
    let canvas = image.cropper(get);
    canvas.toBlob(function(blob){
     fd.append('cover_img',blob);
    
    axios.post(//,fd).then(res =>{
     let {status,message} =res,data;
     if(status===0){
         layer.msg(message)
     }
    })
 })
})